package com.chinasofti.sbuilder;

public class Demo03 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append("hello");
        //String s =sb; 错误
        //  StringBuilder  >>  String
        String s =sb.toString();
        System.out.println(s);
        //String >> StringBuilder
        StringBuilder sb1 = new StringBuilder(s);
    }
}
